import request from '@/utils/request'

// 查询教育风采列表
export function listEducationInfo(query) {
  return request({
    url: '/business/educationInfo/list',
    method: 'get',
    params: query
  })
}

// 查询教育风采所有列表
export function listAllEducationInfo(query) {
  return request({
    url: '/business/educationInfo/listAll',
    method: 'get',
    params: query
  })
}

// 查询教育风采详细
export function getEducationInfo(id) {
  return request({
    url: '/business/educationInfo/getInfo/' + id,
    method: 'get'
  })
}

// 新增教育风采
export function addEducationInfo(data) {
  return request({
    url: '/business/educationInfo/add',
    method: 'post',
    data: data
  })
}

// 修改教育风采
export function updateEducationInfo(data) {
  return request({
    url: '/business/educationInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除教育风采
export function delEducationInfo(id) {
  return request({
    url: '/business/educationInfo/remove/' + id,
    method: 'get'
  })
}
